drepster
04/09/2025, 9:18 AMjarkko.poyry.metaplay
04/09/2025, 11:40 AMjarkko.poyry.metaplay
04/09/2025, 11:51 AMGetEntityStateAsync that's a good point.
Currently it only works for PersistedMultiplayerEntityActorBase and Player actor, or anything that manually implements InternalEntityStateRequest. Due to an implementation detail, we ended up carrying IModels instead of ISchemaMigratables in the InternalEntityStateResponse.
So it's not by design but more like an oversight.
I think what we would want here is that:
* GetEntityStateAsync it will be changed to return ISchemaMigratable.
* Server-Entities should not need to manually implement InternalEntityStateRequests to be eligible for GetEntityStateAsync
I've added this to a todo list, but I must warn you the priority is low and there are many competing things on the list too. If this is a critical for you, you can work around it by creating custom yor own InternalEntityStateRequest / Response and manually handling that in the actor and on call-site you EntityAsk manually.drepster
04/09/2025, 12:19 PM